// 创建新的 DTO 类 ConversationDTO.java
package org.example.springboot.entity.Dto;

import org.example.springboot.entity.Message;
import lombok.Data;

@Data
public class ConversationDTO {
    private Message message;
    private Long unreadCount;
    private String receiverName;

    public ConversationDTO(Message message, Long unreadCount, String receiverName) {
        this.message = message;
        this.unreadCount = unreadCount;
        this.receiverName = receiverName;
    }
}